<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="html.css">
    <title>图片精灵</title>
    <style> 
        body{
            margin-top: 10px;
        }
        #box{
            border: 1px  solid black;
            background-image: url(footicon.png);
            width:62px;
            height: 32px;
            background-size: 500% 100%;
        }
        .A{
            background-position:  0 0 ;
            
        }
        .B{
            background-position:  100% 0 ;
        }
        .C{
            background-position:  -100% 0 ;
        }
        .D{
            background-position:  -200% 0 ;
        }
        .E{
            background-position:  200% 0 ;
        }

    </style>
    
</head>
<body>
    <div id="box"  class="E"></div>
</body>
</html>